.collection-page {
    padding: 20px;
    background-color: #f9f9f9;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.collect-product-card {
    /* 移除固定高度，让卡片高度根据内容自适应 */
    /* height: 300px; */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    border-radius: 8px;
    border: 1px solid #e0e0e0; /* 添加边框 */
    box-shadow: none; /* 移除阴影 */
}

.image-container {
    width: 100%;
    height: 200px; /* 保持图片容器高度固定 */
    overflow: hidden;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.collect-product-card .product-image {
    width: 100%;
    height: 100%; /* 保持图片高度固定 */
    object-fit: cover;
}

.collect-product-card .product-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    cursor: pointer;
    color: #333;
    padding: 0 10px;
}

.collect-product-card .product-name:hover {
    text-decoration: underline;
}

.collect-product-card .product-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    margin-bottom: 10px;
}

.price {
    color: red;
    font-size: 18px;
}

.stock {
    color: #666;
}

.pagination-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}